Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add starcoder2 #1349

Merged
merged 4 commits into from
Mar 6, 2024
Merged

add starcoder2 #1349

merged 4 commits into from
Mar 6, 2024

Conversation

ehartford
Copy link
Collaborator

add starcoder2

Description

add starcoder2

Motivation and Context

add starcoder2

How has this been tested?

i ran a build with it, and it worked

Screenshots (if appropriate)

Types of changes

add starcoder2

Social Handles (Optional)

examples/starcoder2/qlora.yml Outdated Show resolved Hide resolved
examples/starcoder2/qlora.yml Outdated Show resolved Hide resolved
examples/starcoder2/qlora.yml Show resolved Hide resolved
examples/starcoder2/qlora.yml Outdated Show resolved Hide resolved
examples/starcoder2/qlora.yml Outdated Show resolved Hide resolved
Comment on lines +35 to +45
elif model_type == "starcoder2":
transformers.models.starcoder2.modeling_starcoder2._get_unpad_data = ( # pylint: disable=protected-access
get_unpad_data
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

examples/starcoder2/qlora.yml Outdated Show resolved Hide resolved
examples/starcoder2/qlora.yml Outdated Show resolved Hide resolved
chat_template: chatml

dataset_prepared_path: dataset_prepared
val_set_size: 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we set val size?

Copy link
Collaborator Author

@ehartford ehartford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

ehartford and others added 4 commits March 5, 2024 17:48
Co-authored-by: NanoCode012 <kevinvong@rocketmail.com>
Co-authored-by: NanoCode012 <kevinvong@rocketmail.com>
@winglian winglian merged commit e0f1895 into main Mar 6, 2024
6 checks passed
@winglian winglian deleted the starcoder2 branch March 6, 2024 00:49
@ajinkya123-robo
Copy link

Great work!
Kindly add:
model_type: AutoModelForCausalLM
tokenizer_type: AutoTokenizer
trust_remote_code: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants